<?php
$appId = "wx0774ba4f6f80ec86";
$appSecrect = "168bf2e6ecddf7a17dc835793b0efc7a";
$redictUrl = urlencode("http://driver.tuniaoapp.com/pay/wechat/res1.php");
$state = 555;
$goUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid={$appId}&redirect_uri={$redictUrl}&response_type=code&scope=snsapi_userinfo&state={$state}#wechat_redirect";
header('Location:'.$goUrl);
?>
